﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Loong.Store
{
    public interface IURLList
    {
        /// <summary>
        /// 添加地址
        /// </summary>
        /// <param name="url"></param>
        void add(string url);

        /// <summary>
        /// 删除址
        /// </summary>
        /// <param name="url"></param>
        void delete(string url);

        /// <summary>
        /// 获得一个地址
        /// </summary>
        /// <param name="url"></param>
        string get();

        /// <summary>
        /// 获得指定数量的地址
        /// </summary>
        /// <param name="count">获取的数量</param>
        /// <returns>地址数组</returns>
        string[] get(int count);

       /// <summary>
       /// 指定地址是否存在
       /// </summary>
       /// <param name="url">地址</param>
        void isExist(string url);

    }
}

 